<?php


namespace App\HttpController\Base;


use App\Exceptions\MissParamsException;

class LoginBase extends Base
{
    protected $system_app_id;

    protected function onRequest(?string $action): ?bool
    {
        $header = $this->request()->getHeader('app_id');
        $app_id = end($header);
        if (!$app_id) {
            throw new MissParamsException('Header-app_id');
        } else {
            $this->system_app_id = $app_id;
        }
        return parent::onRequest($action); // TODO: Change the autogenerated stub
    }


}